<template>
    <div >
        <div class="msg">
            {{ msg }}
        </div>
        <div>
            <a-button type="primary" @click="toMult">分身</a-button>
        </div>
    </div>
</template>

<script setup lang="ts">
import { MultAPISender } from "@/ipc-event-names/mult";

const msg = 'Hello World!';

/**
 * 打开多屏
 */
function toMult() {
    window[MultAPISender].openMult();
}

</script>

<style scoped lang="less">
.msg {
    color: red;
}
</style>